﻿using System;
using System.ComponentModel.DataAnnotations;
using DotNet.Entity;

namespace DotNet.Core.Entity
{
    public class Revertback
    {
        /// <summary>
        /// 状态 0待审核 1 已审核
        /// </summary>
		[Column("状态", Exported = false)]
        public bool Status { get; set; }

        /// <summary>
        /// 回复部门
        /// </summary>
		[Column("回复部门")]
        [Required(ErrorMessage = "请输入回复部门")]
        [MaxLength(50, ErrorMessage = "信件主题长度不能超过{0}个字符")]
        public string RevertDept { get; set; }

        /// <summary>
        /// 回复时间
        /// </summary>
        [Column("回复时间")]
        public DateTime? RevertTime { get; set; }

        /// <summary>
        /// 回复内容
        /// </summary>
        [Column("回复内容")]
        [Required(ErrorMessage = "请输入回复内容")]
        public string RevertContents { get; set; }
    }
}